<template>
  <div class="sign">
    <div>用户界面</div>
    <div>
      <button type="primary" @click="handleGo">退出</button>
    </div>
  </div>
</template>
<script>
export default {
  name: "user-user",
  /**
   * 调用组建
   * @type {Object}
   */
  components: {},
  /**
   * 组建属性
   * @type {Object}
   */
  props: {},
  /**
   * 数据字段
   * @return {[type]} [description]
   */
  data() {
    return {};
  },
  /**
   * 计算属性
   * @type {Object}
   */
  computed: {},
  /**
   * 数据监听
   * @type {Object}
   */
  watch: {},
  /**
   * 页面创建时
   * @return {[type]} [description]
   */
  created() {},
  /**
   * 页面加载时
   * @return {[type]} [description]
   */
  mounted() {},
  /**
   * 页面调用函数
   * @type {Object}
   */
  methods:{
    handleClick(){
      localStorage.setItem("isAuthenticated", 0);
    },
    handleGo() {
      localStorage.setItem('token','') //存储
      // this.$store.commit('setToken', '')
      // this.$store.commit('setUsername', '')
      this.$router.push('/login');
    }
  }
};
</script>
<style scoped></style>